package com.boot.learning.domain;


import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.Data;

/**
 * 简便测试用户 (mongo)
 * @version 1.0
 * @author fuhw
 */
@Data
@Document(collection="simple-users")
public class SimpleUserMongo {
	
	@Id
	private String id;
	
	/**
	 * 用户名
	 */
	private String name;
	
	/**
	 * 密码
	 */
	private Integer age;

	public SimpleUserMongo( String name, Integer age ) {
		super();
		this.name = name;
		this.age = age;
	}

	public SimpleUserMongo() {
		super();
	}
	
	
}
